<?php 
$user = isset($this->user) ? $this->user : null;
$message = isset($this->message) ? $this->message : ''; 
?>
<h3>Registration</h3>
<?php if ($user): ?>
<p><?php echo "Hi {$user->name}," ?></p>
<?php endif; ?>
<p><?php echo $message ?></p>